package objects;


import java.net.InetAddress;
import java.util.Date;
import java.util.HashMap;

public class Client {
	
	
	/*
	<?xml version="1.0"?>
	<result>
	   <date>12345</date> 
	   <cli_mac></cli_mac>
	   <coords>
	      <id_carte>4ZA2</id_carte>
	      <x>X</x>
	      <y>Y</y>
	      <z>Z</z>
	   </coords>
	</result>
    */
	
	
	// attributes
	private InetAddress ip;
	private int port;
	
	private String mac;
	private String apMac;
	private float antennaGain;
	private Point position;

	private HashMap<String, Measurement> measurements;
	private Long time ;
	private String id_carte;
	private String algorithm ;

	//constructor
    public Client(){
    	Date date = new Date();
    	this.time = date.getTime() ;
    	
    }
	// getters and setters
	public InetAddress getIp() {
		return ip;
	}
	public void setIp(InetAddress ip) {
		this.ip = ip;
	}

	public float getAntennaGain() {
		return antennaGain;
	}
	public void setAntennaGain(float antennaGain) {
		this.antennaGain = antennaGain;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public Point getPosition() {
		return position;
	}
	public void setPosition(Point position) {
		this.position = position;
	}
	public HashMap<String, Measurement> getMeasurements() {
		return measurements;
	}
	public void setMeasurements(HashMap<String, Measurement> measurements) {
		this.measurements = measurements;
	}
    public long getTimestamp(){
		return time ;
	}
	public String getCliMac() {
		return mac;
	}
	public void setCliMac(String mac){
		this.mac = mac;
	}
	public String getIdCarte() {
		return id_carte ;
	}
	public void setIdCarte(String id_carte) {
		this.id_carte = id_carte;
	}
	public void setAlgorithm(String algorithm){
		this.algorithm= algorithm;
	}
	public String getAlgorithm(){
		return algorithm;
	}
	public void setApMac(String apMac) {
		this.apMac = apMac;
	}
	public String getApMac() {
		return apMac;
	}
}
